﻿var MCP = MCP || {};

MCP.MetroUI = MCP.MetroUI || (function () {
    var switchSidebar = function () {
        var sidebar = $("#sidebar");
        
        var expandedClassName = MCP.Constants.Sidebar.States.ExpandedClassName;
        var collapsedClassName = MCP.Constants.Sidebar.States.CollapsedClassName;

        if (sidebar.hasClass(expandedClassName)) {
            $(sidebar).removeClass(expandedClassName, 'slow', 'easeOutQuart');
            $("#sidebar i").removeClass("icon-arrow-right-3").addClass("icon-arrow-left-3");
        } else {
            $(sidebar).addClass(expandedClassName, 'slow', 'easeOutQuart');
            $("#sidebar i").removeClass("icon-arrow-left-3").addClass("icon-arrow-right-3");
        }
    };

	var highlightTile = function() {
		
	};

    return {
    	SwitchSidebar : switchSidebar,
    	HighlightTile : highlightTile
    };
})()